|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.RateModel
com.highdeal.pnr.hci.UsageRateModel
public class UsageRateModel
This class represents an usage rate.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="usage">
<xs:complexType>
<xs:sequence>
<xs:element ref="component" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="ciName" type="xs:string" use="required"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
ANY_CI_NAME
Constant for any chargeable item. |
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the usage rate. |
| Constructor Summary | |
|---|---|
UsageRateModel()
|
|
| Method Summary | |
|---|---|
java.util.List<QualifiedChargeableItemDescription> |
availableCINames()
Gets available chargeable item names. |
boolean |
checkValidity()
Returns true if the Usage Rate is valid. |
java.lang.String |
getChargeableItemName()
Gets the chargeable item name. |
RatingContextDescription |
getContext(ContextualNode child)
Gets the context for the specified child. |
protected java.lang.String |
getTagName()
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setChargeableItemName(java.lang.String name)
Sets the chargeable item name. |
| Methods inherited from class com.highdeal.pnr.hci.RateModel |
|---|
addCharacterData, addChild, getDescription, getName, getParent, getRateComponent, inheritedContext, marshalAttributes, marshalChildren, remove, setDescription, setName, setParent, setRateComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
public static final java.lang.String ANY_CI_NAME
| Constructor Detail |
|---|
public UsageRateModel()
| Method Detail |
|---|
public void setChargeableItemName(java.lang.String name)
name - the chargeable item name.public java.lang.String getChargeableItemName()
public boolean checkValidity()
checkValidity in class RateModelpublic RatingContextDescription getContext(ContextualNode child)
child - the child node
public java.util.List<QualifiedChargeableItemDescription> availableCINames()
QualifiedChargeableItemDescription containing all chargeable item names.public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallablesetAttributes in class RateModelatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface IXMLMarshallablemarshal in interface XMLMarshallablemarshal in class RateModeloutput - The XML output to marshal the object intoprotected java.lang.String getTagName()
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||